package com.tbfs.admin.service.sdk.impl;

import java.util.List;

import com.tbfs.admin.dao.CompanyDAO;
import com.tbfs.admin.service.sdk.ICompanyService;
import com.tbfs.admin.vo.Company;

public class CompanyServiceImpl implements ICompanyService {
	private CompanyDAO companyDao = null;



	public CompanyDAO getCompanyDao() {
		return companyDao;
	}

	public void setCompanyDao(CompanyDAO companyDao) {
		this.companyDao = companyDao;
	}

	public void add(Company company) throws Exception {
		companyDao.saveCompanyInfo(company);
	}

	public void destory(Company company) throws Exception {
		companyDao.deletecompanyInfo(company);
	}

	public void modify(Company company) throws Exception {
		companyDao.updateCompanyInfo(company);
	}

	public Integer getCompanyTotalCount(Company bean) throws Exception {
		// TODO Auto-generated method stub
		return companyDao.queryCountBySelective(bean);
	}

	public List getCompanyList(Company bean) throws Exception {
		// TODO Auto-generated method stub
		return companyDao.queryBySelective(bean);
	}
	
	
}
